<?php
use app\models\Issue;
use yii\grid\ActionColumn;
use yii\grid\GridView;
use yii\helpers\Url;

?>

<?= GridView::widget([
    'dataProvider' => $dataProvider,
    // 'filterModel' => $searchModel,
    'columns' => [
        ['class' => 'yii\grid\SerialColumn'],

        'id',        
        'contact.name',
        'name',
        'detail:ntext',
        'priority:issuePriority',
        'state:issueState',
        'date',
        'project.name',
        //'createdAt',
        //'updatedAt',
        [
            'class' => ActionColumn::class,
            'urlCreator' => function ($action, Issue $model, $key, $index, $column) {
                return Url::toRoute([$action, 'id' => $model->id]);
                }
        ],
    ],
]); ?>